<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> 
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                com.scalar.chiptrack.utils.StringUtils,
                com.scalar.chiptrack.users.Functionality,
                com.scalar.chiptrack.operations.Inventory,
                com.scalar.chiptrack.users.User,
                com.scalar.chiptrack.commons.SessionKeys,
				com.scalar.chiptrack.sales.LineItem,
                com.scalar.chiptrack.commons.Constants,
                java.util.Date,
                java.util.Calendar,
                java.util.GregorianCalendar,
                java.util.ArrayList"%>
<HTML><HEAD><TITLE>ScalarSoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type='text/css' rel='stylesheet'>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR>

<BODY bgcolor="ffffff" marginheight="0" marginwidth="0" topmargin=0 leftmargin=0 >
<table border="0" width="100%" bordercolor="#FFFFFF">
    <tr><td>&nbsp;</td><td colspan='5' align='left'><chiptrack:info styleClass="NAriaL"/></td></tr>
    <tr><td>&nbsp;</td><td colspan='5' align='left'><chiptrack:errors styleClass="NAriaL"/></td></tr>
	<% 
		ArrayList lineItemDetails = (ArrayList)request.getAttribute( "lineItemDetails" ); 
		if( lineItemDetails != null && lineItemDetails.isEmpty() == false )
		{
	%>
	<tr>
		<td align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">SalesOrder#</font></font></td>
		<td align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">LineItem#</font></font></td>
		<td align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Customer</font></font></td>
		<td align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Quantity</font></font></td>
		<td align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">ScheduleDate</font></font></td>
	</tr>
	<%
		//}
		
		int bgcount = 0;

		//if( lineItemDetails != null && lineItemDetails.isEmpty() == false )
		//{
			for( int i = 0; i < lineItemDetails.size(); i++ )
			{
				bgcount++;
				LineItem lineItem = (LineItem)lineItemDetails.get(i);
	%>
		<tr <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>>		
			<td><font class="NArialL"><%=lineItem.getSalesOrderNo()%></font></td>
			<td><font class="NArialL"><%=lineItem.getLineItemNo()%></font></td>
			<td><font class="NArialL"><%=lineItem.getCustomerName()%></font></td>
			<td><font class="NArialL"><%=lineItem.getQuantity()%></font></td>
			<td><font class="NArialL"><%=lineItem.getScheduleDate()%></font></td>
		</tr>
	<%
			}
		}
	%>
	<tr><td colspan=5 bgcolor="#FFFFEE"><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
	<tr><td colspan=5 align="center" ><a href="javascript:window.close();"><font class='NArialL'>[Close this window]</font></a></td></tr>
</table>
</BODY>
</HEAD>
</HTML>